import Vue from "vue";
import VueRouter from "vue-router";
import ShouYe from "../views/ShouYe.vue";
Vue.use(VueRouter);

const routes = [
  {
    path: "*",
    name: "404",
    component: () => import("../views/NotFound.vue"),
  },
  {
    path: "/",
    redirect: "/ShouYe",
  },
  {
    path: "/ShouYe",
    name: "shouye",
    component: ShouYe,
  },

  {
    path: "/GaiKuang",
    name: "gaikuang",
    component: () => import("../views/GaiKuang.vue"),
  },
  {
    path: "/ChanPin",
    name: "chanpin",
    component: () => import("../views/ChanPin.vue"),
  },

  {
    path: "/GongCheng",
    name: "gongcheng",
    component: () => import("../views/GongCheng.vue"),
  },
  {
    path: "/ZiXun",
    name: "zixun",
    component: () => import("../views/ZiXun.vue"),
  },
  {
    path: "/WenTi",
    name: "wenti",
    component: () => import("../views/WenTi.vue"),
  },
  {
    path: "/LiuYan",
    name: "liuyan",
    component: () => import("../views/LiuYan.vue"),
  },
  {
    path: "/Details",
    name: "details",
    component: () => import("../views/Details.vue"),
  },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
